package com.ibeetl.codestory.core.ast;

import com.ibeetl.codestory.core.symbol.ClazzSymbolUtil;


public class ClassDeclareAst extends  Ast{
	String clsName;
	PackageDeclareAst packageDeclareAst;
	ClassBodyAst classBodyAst;

	public ClassDeclareAst(Token token,PackageDeclareAst packageDeclareAst,
			ClassBodyAst classBodyAst) {
		super(token);
		this.clsName = token.txt;
		this.classBodyAst = classBodyAst;
		this.packageDeclareAst=packageDeclareAst;
		ClazzSymbolUtil.registerClassDeclare(clsName,this);
	}

	public String getClsName() {
		return clsName;
	}
}
